﻿@{
    ViewBag.title = "系统配置中心"; 
    Layout = null;
}
<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="renderer" content="webkit">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
    <title>@ViewBag.Title</title>
    <link href="~/css/ElementUI/element-ui.css" rel="stylesheet" />
    <link href="~/css/update.css" asp-append-version="true" rel="stylesheet" />
    <style type="text/css">
        [v-cloak] {
            display: none;
        }
    </style>
</head>
<body>
    <div id="divKey" v-cloak class="main_div" style="margin:10% auto 0px;width:400px;">
        <h2 class="step_title">登录认证</h2>
        <div style="padding:30px 20px;width:360px;">
            <div style="padding-bottom:5px;">输入口令：</div>
            <span id="spMsg" style="display:none;color:#ff6a00;"></span>
            <input type="password" v-model="key" maxlength="50" class="data_ul_r input_txt radius4 wAll" />
        </div>
        <div class="step_bottom">
            <input type="button" v-on:click="loginSys" class="blue_btn radius4 w200" value="确定" />
        </div>
    </div>
    <script src="~/lib/vue.min.js"></script>
    <script src="~/lib/elementui/element-ui.js"></script>
    <script src="~/js/common/elementextend.js" asp-append-version="true"></script>
    <script src="~/lib/vee-validate/dist/vee-validate.min.js"></script>
    <script src="~/lib/vee-validate/dist/locale/zh_cn.js"></script>
    <script src="~/js/common/veeextend.js"></script>
    <script src="~/lib/jquery-1.12.4.min.js"></script>
    <script src="~/js/common/jsextend.js" asp-append-version="true"></script>
    <script type="text/javascript">
        var VmKey = new Vue({
            el: "#divKey",
            data: {
                key: ""
            },
            methods: {
                loginSys: function () {
                    var that = this;
                    if (that.key == "") {
                        VmYz.message("请输入口令！");
                        return;
                    }
                    $.post("/account/LoginUpdate", { key: that.key }, function (data) {
                        VmYz.message(data.msg, data.suc);
                        if (data.suc) {
                            location.href = "/update/index";
                        }
                    });
                }
            }
        })
    </script>
</body>
</html> 